#include"Httpservice.hpp"
#include<memory>
#include"Log.hpp"
#include<sstream>
void USE(char*ch)
{
    std::cout<<ch<<" port[>1024]"<<std::endl;
}
int main(int argc,char*argv[])
{
    if(argc!=2)
    {
        USE(argv[0]);
        exit(0);
    }
    uint16_t port = std::stoi(argv[1]);
    std::shared_ptr<Httpservice>ptr(new Httpservice(port));
    ptr->Init();
    ptr->Start();

    // LOG(INFO,"这是一条测试信息");


    return 0;
}